<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="{{asset('/home/css/bootstrap.css')}}">
    <link rel="stylesheet" href="{{asset('/home/css/userHome.css')}}">
    <link rel="stylesheet" href="{{asset('/home/css/bootstrap.min.css')}}">
    <link rel="stylesheet" href="{{asset('/home/fonts/glyphicons-halflings-regular.ttf')}}">
    <script src="{{URL::asset('/home/js/jquery-2.1.4.min.js')}}"></script>
    <script src="{{URL::asset('/home/js/bootstrap.min.js')}}"></script>
    <link rel="stylesheet" href="{{asset('/home/css/writer/writer.css')}}">


    <title>@yield('title','首页-作家专区')</title>
</head>

<body style="background-color: #EFEFEF;">

{{--头部--}}
<nav class="navbar navbar-default navbar-fixed-top" style="background-color: #FFFFFF;">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand writer-size" href="{{url('zjxhome/index')}}" ><img src="{{asset('home/image/logo.png')}}" style="margin-top: -4px;"></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">

            <ul class="nav navbar-nav navbar-right">

                <li>
                    <a href="{{url('huweize/home/message/'.session('writerid'))}}">
                        <span class="glyphicon glyphicon-bell"></span>
                        通知
                    </a>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{session('nickname')}}<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="{{url('huweize/home/userVIP/'.session('writerid'))}}">作家资料</a></li>
                        <li><a href="{{url('huweize/home/userHome/'.session('writerid'))}}">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>
{{--中间--}}
<div class="container Wrap">
    <div class="row">
        <div class="col-md-2">

            <div class="mainLeft">
                <ul>
                    <li>
                        <span class="glyphicon glyphicon-home"></span>
                        <a href="{{url('huweize/home/userHome')}}">
                            专区首页
                        </a>
                    </li>
                    <li>
                        <span class="glyphicon glyphicon-user"></span>
                        <a href="{{url('huweize/home/weblog/'.session('writerid'))}}">
                            个人心情
                        </a>
                    </li>
                    <li>
                        <span class="glyphicon glyphicon-book"></span>
                        <a href="{{url('huweize/writer/book')}}">
                            作品管理
                        </a>
                    </li>
                    <li>
                        <span class="glyphicon glyphicon-usd"></span>
                        <a href="{{url('huweize/home/userPayment/'.session('writerid'))}}">
                            稿酬收入
                        </a>
                    </li>
                    <li>
                        <span class="glyphicon glyphicon-envelope"></span>
                        <a href="{{url('huweize/home/userTalk/kkk/'.session('writerid'))}}">
                            作家咨询
                        </a>
                    </li>
                    <li>
                        <span class="glyphicon glyphicon-phone"></span>
                        <a href="{{url('huweize/home/feiq')}}">
                            QQ号码测吉凶
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="col-md-10 mainRight" style="margin-left: -16px;">

            @section('main')
                <div class="col-md-12">
                    <div class="mainHeader" style="margin-left: -30px;">
                           <span class="usericon">
                               @if(!empty($icon))
                                   <img src="{{asset('image/writer/'.$icon)}}" alt="" style="border-radius: 50px;margin-top: -7px;">
                               @else
                                   <img src="{{asset('image/public.jpg')}}" alt="" style="border-radius: 50px;margin-top: -7px;">
                               @endif
                           </span>
                        <div class="username">
                            <h3 style="color: #376590;"><b>{{session('nickname')}}</b></h3>
                            <p style="color: #8BAECE;">今天是{{date('Y-m-d h:i:s',time())}}</p>
                        </div>
                    </div>
                </div>

                <div class="col-md-12">

                    <h3>
                        <span class="glyphicon glyphicon-list"></span>
                        作家新闻
                    </h3>
                    <div class="newsList">
                        {{--新闻列表--}}
                        <ul>
                            @if(!empty($lis))
                                @foreach($lis as $k)
                                    <li id="newli">
                                        <em>{{date('Y-m-d H:i:s',$k->addtime)}}</em>
                                        <span><a href="{{url('huweize/home/press/'.$k->id)}}">{{$k->title}}</a></span>
                                    </li>
                                @endforeach
                            @endif
                            <script>
                                $(function() {
                                    $(this).on("mousemove",'#newli',function(){
                                        $(this).css("background-color","#F6FBFF");
                                    }).on("mouseout","#newli",function(){
                                        $(this).css("background-color","#FFFFFF");
                                    })
                                });
                            </script>
                        </ul>
                    </div>
                </div>
                <div class="new_links">
                    @if(!empty($lis))
                        {{$lis->links()}}
                    @endif
                </div>
            @show
        </div>
    </div>

</div>



{{--尾部--}}
<div class="footer">
    <div class="footer-center">
        <a href="" target="_blank">作家论坛</a>
        <span>|</span>
        <a href="" target="_blank">帮助中心</a>
        <span>|</span>
        <a href="" target="_blank">联系客服</a>
        <span>|</span>
        <a href="" target="_blank">关于我们</a>
        <span>|</span>
        <a href="" target="_blank">诚聘英才</a>
        <span>|</span>
        <a href="" target="_blank">版权声明</a>
        <span>|</span>
        Copyright © 2017 All Rights Reserved 阅文集团 版权所有


    </div>
</div>

</body>
</html>
